package com.pxmeta.dynamic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxmeta.dynamic.entity.TopicDynamic;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wcl
 * @since 2022-07-13
 */
public interface ITopicDynamicService extends IService<TopicDynamic> {

    /**
     * 获取话题下动态数量
     * @param topicId
     * @return
     */
    Long getDynamicCount(Long topicId);

    /**
     * 获取动态id集合
     * @param topicId
     * @param page
     * @param size
     * @return
     */
    List<Long> getDynamicIds(Long topicId, Integer page, Integer size);


    /**
     * 根据动态id
     * @param id
     */
    void deleteByDynamicId(Long id);
}
